package etp.client.gui;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;

public class ProgressBar extends Composite {
	
	private AbsolutePanel pnlBar = new AbsolutePanel();
	
	private AbsolutePanel pnlGrowingBar = new AbsolutePanel();
	
	public ProgressBar(){
		
		this.initWidget(pnlBar);
		
		this.pnlBar.add(pnlGrowingBar);
		
		this.pnlGrowingBar.setHeight("100%");
		
		this.setStylePrimaryName("etp-ProgressBar");
		
		this.pnlGrowingBar.setStyleName("etp-InternalBar");
	}
	
	public void setProgress(int percent){
		this.pnlGrowingBar.setWidth(percent+"%");
	}
	
}
